#!/bin/bash

echo 'haha' > test.txt
time=`date +%Y-%m-%d-%H-%M-%S.%N`
echo $time

build_dir="log"

if [ ! -d "$build_dir" ]; then
        mkdir $build_dir
fi
#echo $(`pwd`)
pwd
rm -rf $build_dir/*

unit='Test'

for i in {1..1} ; do
  echo ${i}
  echo $unit
#  timeout  50 go test -run $unit -race  > ${build_dir}/$unit-${time}-$i.log &
  time go test -run $unit   > ${build_dir}/$unit-${time}-$i.log &

done

wait